﻿#ifndef SICKUI_H
#define SICKUI_H

#include <QMainWindow>
#include <QSqlTableModel>
#include <QSqlDatabase>
#include <QMessageBox>
#include <QSqlQuery>

namespace Ui {
class sickUI;
}

class sickUI : public QMainWindow
{
    Q_OBJECT

public:
    explicit sickUI(QString account,QSqlDatabase* db,QWidget *parent = nullptr);
    ~sickUI();

private slots:
    void on_actReserve_triggered();

    void on_actChange_triggered();

    void on_actLookDoctor_triggered();

    void on_actMyCase_triggered();

    void on_actQuit_triggered();

    void on_actMain_triggered();

    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();

    void on_pushButton_5_clicked();

    void on_btnOkReserve_clicked();

    void on_actFeedback_triggered();

    void on_btnSubmit_clicked();

    void on_btnFeedBack_clicked();

    void on_btnReset_clicked();

    void on_btnSubmitChange_clicked();

private:
    Ui::sickUI *ui;

    QSqlDatabase m_db;//数据库连接
    QString m_account;//登陆用户id

    void iniUI();//初始化

    QSqlTableModel* m_doctorModel;//医生信息数据模型
    QSqlTableModel* m_caseModel;//客户病例信息数据模型
};

#endif // SICKUI_H
